package testaux;

public class IfStatement {
    public final Condition cond;
    public final Block ithen;
    public final Block ielse;

    public IfStatement(Condition cond, Block ithen, Block ielse) {
        this.cond = cond;
        this.ielse = ielse;
        this.ithen = ithen;
    }

    public String toString() {
        return "(IF " + cond.toString() + " THEN " + ithen.toString() + " ELSE " + ielse.toString() + ")";
    }
}
